package com.gitee.yannzh.rune.core.base.pagination;

import lombok.Builder;
import lombok.Data;

import java.util.function.Function;

/**
 * @author Yann
 * @date 2025/4/16 15:02
 * @description 统一分页对象
 * @since 1.0.0
 */
@Builder
@Data
public class PageOption {

    private long pageNo;

    private long pageSize;

    private long current;


    public <Page> Page toPage(Function<PageOption,Page> func){
        return func.apply(this);
    }

}
